﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace ChessSharp.BoardCode
{
    public class BoardEventArgs
    {
        public BoardEventType EventType
        {
            get;
            private set;
        }

        public Point Square
        {
            get;
            private set;
        }

        public bool AllowAction
        {
            get;
            set;
        }

        public Point[] LegalSquares
        {
            get;
            set;
        }

        internal BoardEventArgs(BoardEventType BT, Point Square)
        {
            this.EventType = BT;
            this.Square = Square;
            this.AllowAction = true;
            this.LegalSquares = null;
        }
    }

    public enum BoardEventType
    {
        TileSelect,
        MoveAttempt,
    }
}
